[Unit]
Description=logstash

[Service]
Type=simple
User=appadmin
Group=users
Environment=JAVA_HOME={{ java_home }}
EnvironmentFile=-{{ install_path }}/logstash/config
EnvironmentFile=-{{ install_path }}/logstash/config
ExecStart={{ install_path }}/logstash/bin/logstash "--path.settings" "{{ install_path }}/logstash/config"
Restart=always
WorkingDirectory=/
Nice=19
LimitNOFILE=16384

[Install]
WantedBy=multi-user.target